<?php
$tdataproduct_descriptions=array();
	$tdataproduct_descriptions[".NumberOfChars"]=80; 
	$tdataproduct_descriptions[".ShortName"]="product_descriptions";
	$tdataproduct_descriptions[".OwnerID"]="";
	$tdataproduct_descriptions[".OriginalTable"]="product_descriptions";


	
//	field labels
$fieldLabelsproduct_descriptions = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsproduct_descriptions["English"]=array();
	$fieldToolTipsproduct_descriptions["English"]=array();
	$fieldLabelsproduct_descriptions["English"]["id"] = "Id";
	$fieldToolTipsproduct_descriptions["English"]["id"] = "";
	$fieldLabelsproduct_descriptions["English"]["spec_id"] = "Specification 1";
	$fieldToolTipsproduct_descriptions["English"]["spec_id"] = "";
	$fieldLabelsproduct_descriptions["English"]["spec_type_id"] = "Specification Type 1";
	$fieldToolTipsproduct_descriptions["English"]["spec_type_id"] = "";
	$fieldLabelsproduct_descriptions["English"]["spec_id1"] = "Specification 2";
	$fieldToolTipsproduct_descriptions["English"]["spec_id1"] = "";
	$fieldLabelsproduct_descriptions["English"]["spec_type_id1"] = "Specification Type 2";
	$fieldToolTipsproduct_descriptions["English"]["spec_type_id1"] = "";
	$fieldLabelsproduct_descriptions["English"]["spec_id2"] = "Specification 3";
	$fieldToolTipsproduct_descriptions["English"]["spec_id2"] = "";
	$fieldLabelsproduct_descriptions["English"]["spec_type_id2"] = "Specification Type 3";
	$fieldToolTipsproduct_descriptions["English"]["spec_type_id2"] = "";
	if (count($fieldToolTipsproduct_descriptions["English"])){
		$tdataproduct_descriptions[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_id"] = "Spec Id";
	$fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_id"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_type_id"] = "Spec Type Id";
	$fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_type_id"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_id1"] = "Spec Id1";
	$fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_id1"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_type_id1"] = "Spec Type Id1";
	$fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_type_id1"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_id2"] = "Spec Id2";
	$fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_id2"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_type_id2"] = "Spec Type Id2";
	$fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"]["spec_type_id2"] = "";
	if (count($fieldToolTipsproduct_descriptions["Chinese (Hong Kong S.A.R.)"])){
		$tdataproduct_descriptions[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsproduct_descriptions["Chinese (Taiwan)"]=array();
	$fieldToolTipsproduct_descriptions["Chinese (Taiwan)"]=array();
	$fieldLabelsproduct_descriptions["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsproduct_descriptions["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Taiwan)"]["spec_id"] = "Spec Id";
	$fieldToolTipsproduct_descriptions["Chinese (Taiwan)"]["spec_id"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Taiwan)"]["spec_type_id"] = "Spec Type Id";
	$fieldToolTipsproduct_descriptions["Chinese (Taiwan)"]["spec_type_id"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Taiwan)"]["spec_id1"] = "Spec Id1";
	$fieldToolTipsproduct_descriptions["Chinese (Taiwan)"]["spec_id1"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Taiwan)"]["spec_type_id1"] = "Spec Type Id1";
	$fieldToolTipsproduct_descriptions["Chinese (Taiwan)"]["spec_type_id1"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Taiwan)"]["spec_id2"] = "Spec Id2";
	$fieldToolTipsproduct_descriptions["Chinese (Taiwan)"]["spec_id2"] = "";
	$fieldLabelsproduct_descriptions["Chinese (Taiwan)"]["spec_type_id2"] = "Spec Type Id2";
	$fieldToolTipsproduct_descriptions["Chinese (Taiwan)"]["spec_type_id2"] = "";
	if (count($fieldToolTipsproduct_descriptions["Chinese (Taiwan)"])){
		$tdataproduct_descriptions[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsproduct_descriptions["French"]=array();
	$fieldToolTipsproduct_descriptions["French"]=array();
	if (count($fieldToolTipsproduct_descriptions["French"])){
		$tdataproduct_descriptions[".isUseToolTips"]=true;
	}
}


	
	$tdataproduct_descriptions[".NCSearch"]=true;

	

$tdataproduct_descriptions[".shortTableName"] = "product_descriptions";
$tdataproduct_descriptions[".nSecOptions"] = 0;
$tdataproduct_descriptions[".recsPerRowList"] = 1;	
$tdataproduct_descriptions[".tableGroupBy"] = "0";
$tdataproduct_descriptions[".mainTableOwnerID"] = "";
$tdataproduct_descriptions[".moveNext"] = 1;




$tdataproduct_descriptions[".showAddInPopup"] = false;

$tdataproduct_descriptions[".showEditInPopup"] = false;

$tdataproduct_descriptions[".showViewInPopup"] = false;


$tdataproduct_descriptions[".fieldsForRegister"] = array();

$tdataproduct_descriptions[".listAjax"] = true;

	$tdataproduct_descriptions[".audit"] = false;

	$tdataproduct_descriptions[".locking"] = false;
	
$tdataproduct_descriptions[".listIcons"] = true;
$tdataproduct_descriptions[".edit"] = true;
$tdataproduct_descriptions[".inlineEdit"] = true;
$tdataproduct_descriptions[".view"] = true;

$tdataproduct_descriptions[".exportTo"] = true;

$tdataproduct_descriptions[".printFriendly"] = true;

$tdataproduct_descriptions[".delete"] = true;

$tdataproduct_descriptions[".showSimpleSearchOptions"] = true;

$tdataproduct_descriptions[".showSearchPanel"] = true;


$tdataproduct_descriptions[".isUseAjaxSuggest"] = true;

$tdataproduct_descriptions[".rowHighlite"] = true;


// button handlers file names

$tdataproduct_descriptions[".addPageEvents"] = false;

$tdataproduct_descriptions[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdataproduct_descriptions[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdataproduct_descriptions[".isUseTimeForSearch"] = false;

$tdataproduct_descriptions[".isUseiBox"] = false;



$tdataproduct_descriptions[".isUseInlineAdd"] = true;

$tdataproduct_descriptions[".isUseInlineEdit"] = true;
$tdataproduct_descriptions[".isUseInlineJs"] = $tdataproduct_descriptions[".isUseInlineAdd"] || $tdataproduct_descriptions[".isUseInlineEdit"];

$tdataproduct_descriptions[".allSearchFields"] = array();

$tdataproduct_descriptions[".globSearchFields"][] = "spec_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_id", $tdataproduct_descriptions[".allSearchFields"]))
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_id";	
}
$tdataproduct_descriptions[".globSearchFields"][] = "spec_type_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_type_id", $tdataproduct_descriptions[".allSearchFields"]))
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_type_id";	
}
$tdataproduct_descriptions[".globSearchFields"][] = "spec_id1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_id1", $tdataproduct_descriptions[".allSearchFields"]))
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_id1";	
}
$tdataproduct_descriptions[".globSearchFields"][] = "spec_type_id1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_type_id1", $tdataproduct_descriptions[".allSearchFields"]))
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_type_id1";	
}
$tdataproduct_descriptions[".globSearchFields"][] = "spec_id2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_id2", $tdataproduct_descriptions[".allSearchFields"]))
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_id2";	
}
$tdataproduct_descriptions[".globSearchFields"][] = "spec_type_id2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_type_id2", $tdataproduct_descriptions[".allSearchFields"]))
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_type_id2";	
}


$tdataproduct_descriptions[".googleLikeFields"][] = "id";
$tdataproduct_descriptions[".googleLikeFields"][] = "spec_id";
$tdataproduct_descriptions[".googleLikeFields"][] = "spec_type_id";
$tdataproduct_descriptions[".googleLikeFields"][] = "spec_id1";
$tdataproduct_descriptions[".googleLikeFields"][] = "spec_type_id1";
$tdataproduct_descriptions[".googleLikeFields"][] = "spec_id2";
$tdataproduct_descriptions[".googleLikeFields"][] = "spec_type_id2";



$tdataproduct_descriptions[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdataproduct_descriptions[".allSearchFields"])) 
{
	$tdataproduct_descriptions[".allSearchFields"][] = "id";	
}
$tdataproduct_descriptions[".advSearchFields"][] = "spec_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_id", $tdataproduct_descriptions[".allSearchFields"])) 
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_id";	
}
$tdataproduct_descriptions[".advSearchFields"][] = "spec_type_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_type_id", $tdataproduct_descriptions[".allSearchFields"])) 
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_type_id";	
}
$tdataproduct_descriptions[".advSearchFields"][] = "spec_id1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_id1", $tdataproduct_descriptions[".allSearchFields"])) 
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_id1";	
}
$tdataproduct_descriptions[".advSearchFields"][] = "spec_type_id1";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_type_id1", $tdataproduct_descriptions[".allSearchFields"])) 
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_type_id1";	
}
$tdataproduct_descriptions[".advSearchFields"][] = "spec_id2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_id2", $tdataproduct_descriptions[".allSearchFields"])) 
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_id2";	
}
$tdataproduct_descriptions[".advSearchFields"][] = "spec_type_id2";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("spec_type_id2", $tdataproduct_descriptions[".allSearchFields"])) 
{
	$tdataproduct_descriptions[".allSearchFields"][] = "spec_type_id2";	
}

$tdataproduct_descriptions[".isTableType"] = "list";


	

$tdataproduct_descriptions[".isDisplayLoading"] = true;

$tdataproduct_descriptions[".isResizeColumns"] = false;





$tdataproduct_descriptions[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataproduct_descriptions[".strOrderBy"] = $gstrOrderBy;
	
$tdataproduct_descriptions[".orderindexes"] = array();

$tdataproduct_descriptions[".sqlHead"] = "SELECT id,  spec_id,  spec_type_id,  \"\" AS spec_id1,  \"\" AS spec_type_id1,  \"\" AS spec_id2,  \"\" AS spec_type_id2";
$tdataproduct_descriptions[".sqlFrom"] = "FROM product_descriptions";
$tdataproduct_descriptions[".sqlWhereExpr"] = "";
$tdataproduct_descriptions[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataproduct_descriptions[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdataproduct_descriptions[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdataproduct_descriptions[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "product_descriptions";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdataproduct_descriptions["id"]=$fdata;
//	spec_id
	$fdata = array();
	$fdata["strName"] = "spec_id";
	$fdata["ownerTable"] = "product_descriptions";
		$fdata["Label"]="Specification 1"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="color_name";
				$fdata["LookupTable"]="colors";
	$fdata["LookupOrderBy"]="color_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "spec_id";
	
		$fdata["FullName"]= "spec_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproduct_descriptions["spec_id"]=$fdata;
//	spec_type_id
	$fdata = array();
	$fdata["strName"] = "spec_type_id";
	$fdata["ownerTable"] = "product_descriptions";
		$fdata["Label"]="Specification Type 1"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Readonly";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "spec_type_id";
	
		$fdata["FullName"]= "spec_type_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproduct_descriptions["spec_type_id"]=$fdata;
//	spec_id1
	$fdata = array();
	$fdata["strName"] = "spec_id1";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Specification 2"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="spec_name";
				$fdata["LookupTable"]="master1_properties";
	$fdata["LookupOrderBy"]="spec_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "spec_id1";
	
		$fdata["FullName"]= "\"\"";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproduct_descriptions["spec_id1"]=$fdata;
//	spec_type_id1
	$fdata = array();
	$fdata["strName"] = "spec_type_id1";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Specification Type 2"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Readonly";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "spec_type_id1";
	
		$fdata["FullName"]= "\"\"";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproduct_descriptions["spec_type_id1"]=$fdata;
//	spec_id2
	$fdata = array();
	$fdata["strName"] = "spec_id2";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Specification 3"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="spec_name";
				$fdata["LookupTable"]="master2_properties";
	$fdata["LookupOrderBy"]="spec_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "spec_id2";
	
		$fdata["FullName"]= "\"\"";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproduct_descriptions["spec_id2"]=$fdata;
//	spec_type_id2
	$fdata = array();
	$fdata["strName"] = "spec_type_id2";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Specification Type 3"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Readonly";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "spec_type_id2";
	
		$fdata["FullName"]= "\"\"";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdataproduct_descriptions["spec_type_id2"]=$fdata;

	
$tables_data["product_descriptions"]=&$tdataproduct_descriptions;
$field_labels["product_descriptions"] = &$fieldLabelsproduct_descriptions;
$fieldToolTips["product_descriptions"] = &$fieldToolTipsproduct_descriptions;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["product_descriptions"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["product_descriptions"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto291=array();
$proto291["m_strHead"] = "SELECT";
$proto291["m_strFieldList"] = "id,  spec_id,  spec_type_id,  \"\" AS spec_id1,  \"\" AS spec_type_id1,  \"\" AS spec_id2,  \"\" AS spec_type_id2";
$proto291["m_strFrom"] = "FROM product_descriptions";
$proto291["m_strWhere"] = "";
$proto291["m_strOrderBy"] = "";
$proto291["m_strTail"] = "";
$proto292=array();
$proto292["m_sql"] = "";
$proto292["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto292["m_column"]=$obj;
$proto292["m_contained"] = array();
$proto292["m_strCase"] = "";
$proto292["m_havingmode"] = "0";
$proto292["m_inBrackets"] = "0";
$proto292["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto292);

$proto291["m_where"] = $obj;
$proto294=array();
$proto294["m_sql"] = "";
$proto294["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto294["m_column"]=$obj;
$proto294["m_contained"] = array();
$proto294["m_strCase"] = "";
$proto294["m_havingmode"] = "0";
$proto294["m_inBrackets"] = "0";
$proto294["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto294);

$proto291["m_having"] = $obj;
$proto291["m_fieldlist"] = array();
						$proto296=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "product_descriptions"
));

$proto296["m_expr"]=$obj;
$proto296["m_alias"] = "";
$obj = new SQLFieldListItem($proto296);

$proto291["m_fieldlist"][]=$obj;
						$proto298=array();
			$obj = new SQLField(array(
	"m_strName" => "spec_id",
	"m_strTable" => "product_descriptions"
));

$proto298["m_expr"]=$obj;
$proto298["m_alias"] = "";
$obj = new SQLFieldListItem($proto298);

$proto291["m_fieldlist"][]=$obj;
						$proto300=array();
			$obj = new SQLField(array(
	"m_strName" => "spec_type_id",
	"m_strTable" => "product_descriptions"
));

$proto300["m_expr"]=$obj;
$proto300["m_alias"] = "";
$obj = new SQLFieldListItem($proto300);

$proto291["m_fieldlist"][]=$obj;
						$proto302=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "\"\""
));

$proto302["m_expr"]=$obj;
$proto302["m_alias"] = "spec_id1";
$obj = new SQLFieldListItem($proto302);

$proto291["m_fieldlist"][]=$obj;
						$proto304=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "\"\""
));

$proto304["m_expr"]=$obj;
$proto304["m_alias"] = "spec_type_id1";
$obj = new SQLFieldListItem($proto304);

$proto291["m_fieldlist"][]=$obj;
						$proto306=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "\"\""
));

$proto306["m_expr"]=$obj;
$proto306["m_alias"] = "spec_id2";
$obj = new SQLFieldListItem($proto306);

$proto291["m_fieldlist"][]=$obj;
						$proto308=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "\"\""
));

$proto308["m_expr"]=$obj;
$proto308["m_alias"] = "spec_type_id2";
$obj = new SQLFieldListItem($proto308);

$proto291["m_fieldlist"][]=$obj;
$proto291["m_fromlist"] = array();
												$proto310=array();
$proto310["m_link"] = "SQLL_MAIN";
			$proto311=array();
$proto311["m_strName"] = "product_descriptions";
$proto311["m_columns"] = array();
$proto311["m_columns"][] = "id";
$proto311["m_columns"][] = "spec_id";
$proto311["m_columns"][] = "spec_type_id";
$proto311["m_columns"][] = "group_id";
$proto311["m_columns"][] = "group_order";
$obj = new SQLTable($proto311);

$proto310["m_table"] = $obj;
$proto310["m_alias"] = "";
$proto312=array();
$proto312["m_sql"] = "";
$proto312["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto312["m_column"]=$obj;
$proto312["m_contained"] = array();
$proto312["m_strCase"] = "";
$proto312["m_havingmode"] = "0";
$proto312["m_inBrackets"] = "0";
$proto312["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto312);

$proto310["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto310);

$proto291["m_fromlist"][]=$obj;
$proto291["m_groupby"] = array();
$proto291["m_orderby"] = array();
$obj = new SQLQuery($proto291);

$queryData_product_descriptions = $obj;
$tdataproduct_descriptions[".sqlquery"] = $queryData_product_descriptions;

$tableEvents["product_descriptions"] = new eventsBase;

?>
